package com.smarttest.portal.service;

import java.io.File;
import java.util.List;

import org.springframework.web.multipart.MultipartFile;

import br.eti.kinoshita.testlinkjavaapi.TestLinkAPI;

public interface FileService {
	int uploadFile(MultipartFile uploadFile);
	int uploadFileWithUser(String userName,MultipartFile uploadFile);
	/**
	 * 上传用例文件以便导入用例到testlink
	 * @param userName
	 * @param uploadFile
	 * @return
	 */
	Object uploadCaseWithUser(String userName,MultipartFile uploadFile);
	List<String> zipDecompressing(File file);
	/**
	 * 导入用例到testlink
	 * @param api
	 * @param projectid
	 * @param userName
	 * @param sheetname
	 * @param filename
	 * @return
	 */
	int importcase(TestLinkAPI api,int projectid,String userName ,String sheetname,String filename);
	/**
	 * 上传MQ文件作为发送MQ消息的数据源
	 * @param userName
	 * @param uploadFile
	 * @return
	 */
	Object uploadMQWithUser(String userName, MultipartFile uploadFile);
	/**
	 * 上传excel格式的用例文件以便通过excel直接导入用例到自动化平台
	 * @param userName
	 * @param uploadFiles
	 * @return
	 */
	Object uploadExcelCaseWithUser(String userName,
			MultipartFile[] uploadFiles);
}
